package file;

import com.sun.media.sound.SoftTuning;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 文件输入流，用于从文件中读取字节
 *
 */



public class FileInputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./fos.dat");

        int d = fis.read();
        System.out.println(d);

        d = fis.read();
        System.out.println(d);

        d = fis.read();
        System.out.println(d);

        fis.close();


























    }
}
